import {Directive, HostBinding} from '@angular/core';
import {ButtonDirective} from "primeng/button";

@Directive({
  selector: '[gnTableButtonNew]'
})
export class TableButtonNewDirective {

  @HostBinding() get class() {
    return 'ui-button-raised';
  }

  constructor(button: ButtonDirective) {
    button.label = '新建';
    button.icon = 'pi pi-plus';
  }
}
